package com.blog.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName t_follow
 */
@TableName(value ="t_follow")
@Data
public class Follow implements Serializable {
    /**
     * 
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long fatherUserId;

    /**
     * 
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE) //创建时自动填充
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}